 import Vue from "vue";
 import Router from "vue-router"

 import Home from './pages/Home'
 import Index from './pages/Index'
 import Product from './pages/Product'
 import Detail from './pages/Detail'
 import Order from './pages/Order'
 Vue.use(Router);
 export default new Router({
     routes: [{
         path: '/',
         component: Home,
         redirect: '/index',
         children: [{
             path: '/index',
             component: Index
         }, {
             path: '/product',
             component: Product
         }, {
             path: '/detail',
             component: Detail
         }, {
             path: '/order',
             component: Order
         }]
     }]
 })